#!/bin/bash

BASEDIR=`pwd`

docker run -itd --name emqx \
	-p 1883:1883 \
	-p 8883:8883 \
	-p 18083:18083 \
	-v $BASEDIR/etc:/opt/emqx/etc \
	-v $BASEDIR/log:/opt/emqx/log \
	-v $BASEDIR/data:/opt/emqx/data \
	--network emqx \
	emqx/emqx:latest
